import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:ycbl/utils/resource_manager.dart';
class ButtonUpAndDown extends StatelessWidget {

  final String title;
  final String imageName;

  const ButtonUpAndDown({Key key, this.title, this.imageName}) : super(key: key);


  @override
  Widget build(BuildContext context) {
    var name = ResourceManager.wrapLocalImage(imageName);
    final size = MediaQuery.of(context).size;
    final kWidth = size.width;
    final kHeight = size.height;
    return Container(
      color: Colors.white,
      child: Column(
        children: <Widget>[
          Container(
            margin: EdgeInsets.only(top: 13),
            child: Image(image: AssetImage(name),height: kWidth*0.133,width: kWidth*0.133,),
          ),
          SizedBox(height: kHeight*0.0107,),

          Container(
            child: Text(
              title,
              style: TextStyle(fontSize: 14,fontWeight: FontWeight.w500),
            ),
          ),
        ],
      ),
    );
  }
}
